package com.starlink.model.dtomapper;

import com.starlink.model.domain.AdminAddressDO;
import com.starlink.model.request.AdminAdressRequest;
import com.starlink.model.vo.AdminAddressVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface AdminAdressDtoMapper {

    AdminAdressDtoMapper INSTANCE = Mappers.getMapper(AdminAdressDtoMapper.class);

    /**
    * DO to VO
    * @param adminAddressDO
    * @return
    */
    AdminAddressVO do2VO(AdminAddressDO adminAddressDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    AdminAddressDO request2DO(AdminAdressRequest request);
}
